package com.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.rbmq.Sender;

@RestController
public class RabbitMqController {

	@Autowired
	private Sender sender;

	@RequestMapping("/send")
	public String hello() {
		sender.send();
		return "success";
	}
}
